using System;

class Program
{
    static void Main()
    {
        // 测试环境域名
        string baseUrl = "https://test1.cassbuy.com";
        // 测试appkey
        string appkey = "Kin3htpfa7tV3spOvtOHEsQySQ2q1";
        // 测试appsecret
        string appsecret = "uakmwnthY5QDmdUkUozMbF0hzsFEpelZ47mEfr4jseaJ1";

        // 调用TokenService创建Token
        TokenService.CreateToken(baseUrl, appkey, appsecret);

        // 调用TokenService查询上次请求的Token
        TokenService.QueryLastToken(baseUrl, appkey, appsecret);

        // 调用ItemService上传商品
        ItemService.UploadItems(baseUrl, appkey);

        // 调用PriceService修改商品价格
        PriceService.UpdateItemPrices(baseUrl, appkey);

        // 调用CategoryService获取商品分类
        CategoryService.GetCategories(baseUrl, appkey);

        // 调用BrandService查询商品品牌
        BrandService.QueryBrands(baseUrl, appkey);

        // 调用CycleService获取供货周期
        CycleService.GetCycles(baseUrl, appkey);

        // 调用ItemRecordService获取商品上传结果
        ItemRecordService.QueryItemRecord(baseUrl, appkey);
    }
}
    
